package com.serv.model.activiti.mapper;

import com.serv.model.activiti.ActIdInfo;
import com.serv.model.activiti.ActIdInfoCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface ActIdInfoMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActIdInfoSqlProvider.class, method="countByExample")
    long countByExample(ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @DeleteProvider(type=ActIdInfoSqlProvider.class, method="deleteByExample")
    int deleteByExample(ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @Delete({
        "delete from ACT_ID_INFO",
        "where ID_ = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @Insert({
        "insert into ACT_ID_INFO (ID_, REV_, ",
        "USER_ID_, TYPE_, KEY_, ",
        "VALUE_, PARENT_ID_, ",
        "PASSWORD_)",
        "values (#{id,jdbcType=VARCHAR}, #{rev,jdbcType=INTEGER}, ",
        "#{userId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{key,jdbcType=VARCHAR}, ",
        "#{value,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, ",
        "#{password,jdbcType=LONGVARBINARY})"
    })
    int insert(ActIdInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @InsertProvider(type=ActIdInfoSqlProvider.class, method="insertSelective")
    int insertSelective(ActIdInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActIdInfoSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="ID_", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="REV_", property="rev", jdbcType=JdbcType.INTEGER),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="KEY_", property="key", jdbcType=JdbcType.VARCHAR),
        @Result(column="VALUE_", property="value", jdbcType=JdbcType.VARCHAR),
        @Result(column="PARENT_ID_", property="parentId", jdbcType=JdbcType.VARCHAR),
        @Result(column="PASSWORD_", property="password", jdbcType=JdbcType.LONGVARBINARY)
    })
    List<ActIdInfo> selectByExampleWithBLOBs(ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @SelectProvider(type=ActIdInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ID_", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="REV_", property="rev", jdbcType=JdbcType.INTEGER),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="KEY_", property="key", jdbcType=JdbcType.VARCHAR),
        @Result(column="VALUE_", property="value", jdbcType=JdbcType.VARCHAR),
        @Result(column="PARENT_ID_", property="parentId", jdbcType=JdbcType.VARCHAR)
    })
    List<ActIdInfo> selectByExample(ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "ID_, REV_, USER_ID_, TYPE_, KEY_, VALUE_, PARENT_ID_, PASSWORD_",
        "from ACT_ID_INFO",
        "where ID_ = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="ID_", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="REV_", property="rev", jdbcType=JdbcType.INTEGER),
        @Result(column="USER_ID_", property="userId", jdbcType=JdbcType.VARCHAR),
        @Result(column="TYPE_", property="type", jdbcType=JdbcType.VARCHAR),
        @Result(column="KEY_", property="key", jdbcType=JdbcType.VARCHAR),
        @Result(column="VALUE_", property="value", jdbcType=JdbcType.VARCHAR),
        @Result(column="PARENT_ID_", property="parentId", jdbcType=JdbcType.VARCHAR),
        @Result(column="PASSWORD_", property="password", jdbcType=JdbcType.LONGVARBINARY)
    })
    ActIdInfo selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActIdInfoSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ActIdInfo record, @Param("example") ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActIdInfoSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") ActIdInfo record, @Param("example") ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActIdInfoSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ActIdInfo record, @Param("example") ActIdInfoCriteria example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @UpdateProvider(type=ActIdInfoSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(ActIdInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @Update({
        "update ACT_ID_INFO",
        "set REV_ = #{rev,jdbcType=INTEGER},",
          "USER_ID_ = #{userId,jdbcType=VARCHAR},",
          "TYPE_ = #{type,jdbcType=VARCHAR},",
          "KEY_ = #{key,jdbcType=VARCHAR},",
          "VALUE_ = #{value,jdbcType=VARCHAR},",
          "PARENT_ID_ = #{parentId,jdbcType=VARCHAR},",
          "PASSWORD_ = #{password,jdbcType=LONGVARBINARY}",
        "where ID_ = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(ActIdInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table ACT_ID_INFO
     *
     * @mbg.generated
     */
    @Update({
        "update ACT_ID_INFO",
        "set REV_ = #{rev,jdbcType=INTEGER},",
          "USER_ID_ = #{userId,jdbcType=VARCHAR},",
          "TYPE_ = #{type,jdbcType=VARCHAR},",
          "KEY_ = #{key,jdbcType=VARCHAR},",
          "VALUE_ = #{value,jdbcType=VARCHAR},",
          "PARENT_ID_ = #{parentId,jdbcType=VARCHAR}",
        "where ID_ = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(ActIdInfo record);
}